﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tasks.Common.Enum;

namespace Tasks.Common.Entitys
{
    /// <summary><c>SmartTicket</c> Business Object.</summary>
    [Serializable]
    public partial class SmartTicket:SmartTicket2Product
    {

        #region ID

        private Int32 m_iD;

        /// <summary>Gets or sets ID</summary>
        public Int32 ID
        {
            get { return m_iD; }
            set { m_iD = value; }
        }

        #endregion

        #region No

        private String m_no;

        /// <summary>Gets or sets No</summary>
        public String No
        {
            get { return m_no; }
            set { m_no = value; }
        }

        #endregion

        #region Password

        private String m_password;

        /// <summary>Gets or sets Password</summary>
        public String Password
        {
            get { return m_password; }
            set { m_password = value; }
        }

        #endregion

        #region UserName

        private String m_userName;

        /// <summary>Gets or sets UserName</summary>
        public String UserName
        {
            get { return m_userName; }
            set { m_userName = value; }
        }

        #endregion

        #region UserMobileNo

        private String m_userMobileNo;

        /// <summary>Gets or sets UserMobileNo</summary>
        public String UserMobileNo
        {
            get { return m_userMobileNo; }
            set { m_userMobileNo = value; }
        }

        #endregion

        #region State

        private Int32 m_state;

        /// <summary>Gets or sets State</summary>
        public Int32 State
        {
            get { return m_state; }
            set { m_state = value; }
        }

        #endregion

        #region ActiveDate

        private DateTime m_activeDate;

        /// <summary>Gets or sets ActiveDate</summary>
        public DateTime ActiveDate
        {
            get { return m_activeDate; }
            set { m_activeDate = value; }
        }

        #endregion

        #region ActiveUserID

        private Int32 m_activeUserID;

        /// <summary>Gets or sets ActiveUserID</summary>
        public Int32 ActiveUserID
        {
            get { return m_activeUserID; }
            set { m_activeUserID = value; }
        }

        #endregion

 
        public string ToStateStr()
        {
            return CommonUtil.GetEnumDescription(typeof(SmartTicketState), this.State);
        }
        public string Name { get; set; }
        public int UserID { get; set; }


        #region 扩张属性
        public string ActiveUserName { get; set; }
        public int ActivedCount { get; set; }
        public int UnActivedCount { get; set; }
        public int StorageCount { get; set; }
        public int StorageID { get; set; }
        public int STID { get; set; }
        #endregion
    }

}
